<script>
function no_imagen(esto){ 
esto.src = "<?php echo $this->base;?>/img/no-image.jpg"
}
</script>
 <div class="masters view">
<h2><?php  __('DNFDA nº '.$master['Master']['id']);?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
	
		<div style=" margin-left:0px; width: 960px;  ">
		
		<div>
		<table style="border: none; border-top: none;">
		<tr>
		<td style="border: none;">
		<div style="padding-left:10px; padding-top:5px; width: 400px;">
		<fieldset style="padding-bottom: 20px;">
            <legend><?php __('Datos del Vehiculo'); ?></legend>
			
                <dt<?php if ($i % 2 == 0) echo $class;?>> <?php __('Fecha');  ?></dt>
		<dd style="padding-left:40px;"<?php if ($i++ % 2 == 0) echo $class;?>>
				
			
			
				<?php $fecha = date("d-m-Y",strtotime($master['Master']['fecha']));?>
         	<?php echo $fecha; ?>
					</dd>
					
					
                <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Tipo'); ?></dt>
		<dd style="padding-left:40px;"<?php if ($i++ % 2 == 0) echo $class;?>>
		
		
			<?php echo $vehicles_type['0']['VehiclesType']['descripcion']; ?>
		</dd>
		
		
                <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Marca'); ?></dt>
		<dd style="padding-left:40px;"<?php if ($i++ % 2 == 0) echo $class;?>>
		
		
			<?php echo $brands['0']['Brand']['descripcion']; ?>
		</dd>
		
		
                <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Modelo'); ?></dt>
		<dd style="padding-left:40px;"<?php if ($i++ % 2 == 0) echo $class;?>>
		
		
			<?php echo $models['0']['Model']['descripcion']; ?>
		</dd>
		
		
		
        <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Dominio Extranjero'); ?></dt>
		<dd style="padding-left:40px;"<?php if ($i++ % 2 == 0) echo $class;?>>
		
		
			<?php echo($vehicles['0']['Vehicles']['extranjero'] == '0' ) ? 'No' : 'Si';  ?>
		</dd>
		
		

		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Dominio Completo'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>&nbsp;&nbsp&nbsp;&nbsp;&nbsp;&nbsp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
			<?php switch ($vehicles['0']['Vehicles']['dom_parcial']) {
                                case 0:
                                    echo "No";
                                    break;
                                case 1:
                                    echo "Si";
                                    break;
                                case 2:
                                    echo "Ilegible";
                                    break;
                                case 3:
                                    echo "No Posee";
                                    break;
                                 } ?>
			&nbsp;
		</dd>
		
		
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Dominio'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>&nbsp;&nbsp&nbsp;&nbsp;&nbsp;&nbsp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
			<?php echo $vehicles['0']['Vehicles']['dominio']; ?>
			&nbsp;
		</dd>
		
		
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('N° de Motor Completo'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>&nbsp;&nbsp&nbsp;&nbsp;&nbsp;&nbsp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
			<?php switch ($vehicles['0']['Vehicles']['motor_parc']) {
                                case 0:
                                    echo "No";
                                    break;
                                case 1:
                                    echo "Si";
                                    break;
                                case 2:
                                    echo "Ilegible";
                                    break;
                                case 3:
                                    echo "No Posee";
                                    break;
                                 }?>
			&nbsp;
		</dd>
		
		
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('N° Motor'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>&nbsp;&nbsp&nbsp;&nbsp;&nbsp;&nbsp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
			<?php echo $vehicles['0']['Vehicles']['nro_motor']; ?>
			&nbsp;
		</dd>
			
			
               <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('N° de Chasis Completo'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>&nbsp;&nbsp&nbsp;&nbsp;&nbsp;&nbsp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
			<?php switch ($vehicles['0']['Vehicles']['chasis_parc']) {
                                case 0:
                                    echo "No";
                                    break;
                                case 1:
                                    echo "Si";
                                    break;
                                case 2:
                                    echo "Ilegible";
                                    break;
                                case 3:
                                    echo "No Posee";
                                    break;
                                 }?>
			&nbsp;
		</dd>
		
			
                <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Nº Chasis'); ?></dt>
		<dd style="padding-left:40px;"<?php if ($i++ % 2 == 0) echo $class;?>>
		
		
			<?php echo $vehicles['0']['Vehicles']['nro_chasis']; ?>
		</dd>
		
		</fieldset>
		</div>
		
		</td>
		
		<td style="border: none;">
		<div style="width: 400px; padding-top:5px; padding-left: 5px;">
		<fieldset style="padding-bottom: 10px;">
		<table>
            <legend><?php __('Datos Judiciales'); ?></legend>
		
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Jurisdicción'); ?></dt>
		<dd style="padding-left:40px;"<?php if ($i++ % 2 == 0) echo $class;?>>
		
			<?php echo $jurisdictions['0']['Jurisdiction']['descripcion'] ?>
		</dd> 
		
                <?php if(!empty($provinces['0']['Province']['descripcion'])){?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Provincia'); ?></dt>
		<dd style="padding-left:40px;"<?php if ($i++ % 2 == 0) echo $class;?>>
		
		
			<?php echo $provinces['0']['Province']['descripcion'] ?>
		</dd>
		
                <?php }?>
		
		
                <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Dpto Judicial o <br /> Circunscripción'); ?></dt>
		<dd style="padding-left:40px;"<?php if ($i++ % 2 == 0) echo $class;?>>
		
		
			<?php echo $placements['0']['Placement']['descripcion'] ?>
		</dd>
		
                <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Fuero'); ?></dt>
                 <dd style="padding-left:40px;"<?php if ($i++ % 2 == 0) echo $class;?>>
		
		
			<?php echo $charters['0']['Charter']['descripcion']; ?>
		</dd>
		
               
				<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Juzgado'); ?></dt>
                <dd style="padding-left:40px;"<?php if ($i++ % 2 == 0) echo $class;?>>
				
		
		
			<?php echo $courts['0']['Court']['descripcion']; ?>
		</dd>
		
		
                 <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Secretaría'); ?></dt>
                 <dd style="padding-left:40px;"<?php if ($i++ % 2 == 0) echo $class;?>>
		
		
			<?php echo $secretaries['0']['Secretary']['descripcion']; ?>
		</dd>
		
                 <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Causa'); ?></dt>
                 <dd style="padding-left:40px;"<?php if ($i++ % 2 == 0) echo $class;?>>
		
		
			
                    <?php echo $causes['0']['Causes']['nro_causa']; ?>
		</dd>   
		
		
                 <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Descripción'); ?></dt>
                 <dd style="padding-left:40px;"<?php if ($i++ % 2 == 0) echo $class;?>>
		
		
			<?php echo $causes['0']['Causes']['descripcion']; ?>
		</dd> 
		
		</table>
		</fieldset>
		</div>
		</td>
		
		</tr>
		
		
		
		</div>
		
		
		<tr>
		<td style="border: none;">
		
		<div style="padding-left:10px; padding-top:5px; width: 400px;">
		<fieldset style="padding-bottom: 10px;">
            <legend><?php __('Legajo'); ?></legend>
		
				
                <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Carpeta'); ?></dt>
		<dd style="padding-left:40px;"<?php if ($i++ % 2 == 0) echo $class;?>>
			
			
			<?php echo($master['Master']['carpeta'] == '0' ) ? 'No' : 'Si';  ?>
		</dd>
		
		
                <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Acta de Auditoría'); ?></dt>
		<dd style="padding-left:40px;"<?php if ($i++ % 2 == 0) echo $class;?>>
		
		
			<?php echo($master['Master']['auditoria'] == '0' ) ? 'No' : 'Si';  ?>
		</dd>
		
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Pericia'); ?></dt>
		<dd style="padding-left:40px;"<?php if ($i++ % 2 == 0) echo $class;?>>
		
		
			<?php echo($master['Master']['pericia'] == '0' ) ? 'No' : 'Si';  ?>
		</dd>
		
		
                <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Rodamiento'); ?></dt>
		<dd style="padding-left:40px;"<?php if ($i++ % 2 == 0) echo $class;?>>
		
		
			<?php echo($master['Master']['rodamiento'] == '0' ) ? 'No Apto' : 'Apto';  ?>
		</dd>
		
		
                <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Foto'); ?></dt>
		<dd style="padding-left:40px;"<?php if ($i++ % 2 == 0) echo $class;?>>
			
			
			<?php echo($master['Master']['foto'] == '0' ) ? 'No' : 'Si';  ?>
		</dd>
		
		
        <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('N° de Expte. Ministerial'); ?></dt>
		<dd style="padding-left:40px;"<?php if ($i++ % 2 == 0) echo $class;?>>
		
		
			<?php echo$master['Master']['nro_expediente'];  ?>
		</dd>
		<br/>
		
                <dt<?php if ($i % 2 == 0) echo $class;?>><?php __('N° de Resolución de <br /> Compactación'); ?></dt>
		<dd style="padding-left:40px;"<?php if ($i++ % 2 == 0) echo $class;?>>
		
		
			<?php echo$master['Master']['nro_resolucion'];  ?>
		</dd> 
		
		<br/>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Fecha de Compactación'); ?></dt>
		<dd style="padding-left:40px;"<?php if ($i++ % 2 == 0) echo $class;?>>
		
		
                    <?php $fecha2=date("d-m-Y",strtotime($master['Master']['fecha_compactacion']));?>
			<?php echo $fecha2; ?>
		</dd>
		
		
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Caja de Archivo'); ?></dt>
		<dd style="padding-left:40px;"<?php if ($i++ % 2 == 0) echo $class;?>>
		
		
			<?php echo $master['Master']['caja_archivo']; ?>
		</dd>
		
		<br/>
		
		
		</fieldset>
		</div>
		
		
		</td>
		
		
		<td rowspan="2" style="border: none;">
		
		
		<div style="width: 400px; padding-top:5px; padding-left: 5px;">
		<fieldset style="padding-bottom: 40px;">
            <legend><?php __('Ubicación y Estado'); ?></legend>
		
		
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Estado'); ?></dt>
		<dd style="padding-left:40px;"<?php if ($i++ % 2 == 0) echo $class;?>>
		
		
			<?php echo $master['State']['descripcion']; ?>
		</dd>
		
		
 		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Depósito'); ?></dt>
		<dd style="padding-left:40px;"<?php if ($i++ % 2 == 0) echo $class;?>>
		
		
			<?php echo $master['Desposit']['descripcion']; ?>
		</dd>               
		
		
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Observaciones'); ?></dt>
		<dd style="padding-left:40px;"<?php if ($i++ % 2 == 0) echo $class;?>>
		
		
			<?php echo $master['Master']['observaciones']; ?>
		</dd>
		
		
		</fieldset>
		</div>
		
		
		<div style="width: 400px; padding-top:5px; padding-left: 5px;">
<fieldset>
<legend><?php __('Fotos'); ?></legend>
<a href="<?php echo $this->base;echo "/uploads/imagen/".$item."/frente";?>" rel="lyteshow[gallery]">
    <img src="<?php echo $this->base;echo "/uploads/imagen/".$item."/frente"; ?> " onError="no_imagen(this)" width="80" height="80">
</a>
<a href="<?php echo $this->base;echo "/uploads/imagen/".$item."/perfil_derecho";?>" rel="lyteshow[gallery]">
    <img src="<?php echo $this->base;echo "/uploads/imagen/".$item."/perfil_derecho";  ?>" width="80" height="80">
</a>
<a href="<?php echo $this->base;echo "/uploads/imagen/".$item."/perfil_izquierdo";?>" rel="lyteshow[gallery]">
    <img src="<?php echo $this->base;echo "/uploads/imagen/".$item."/perfil_izquierdo";  ?>" onError="no_imagen(this)" width="80" height="80">
</a>
<a href="<?php echo $this->base;echo "/uploads/imagen/".$item."/baul";?>" rel="lyteshow[gallery]">
    <img src="<?php echo $this->base;echo "/uploads/imagen/".$item."/baul";  ?>" onError="no_imagen(this)" width="80" height="80">
</a>
<a href="<?php echo $this->base;echo "/uploads/imagen/".$item."/interior";?>" rel="lyteshow[gallery]">
    <img src="<?php echo $this->base;echo "/uploads/imagen/".$item."/interior";  ?>" onError="no_imagen(this)" width="80" height="80">
</a>
<a href="<?php echo $this->base;echo "/uploads/imagen/".$item."/motor";?>" rel="lyteshow[gallery]">
    <img src="<?php echo $this->base;echo "/uploads/imagen/".$item."/motor";  ?>" onError="no_imagen(this)" width="80" height="80">
</a>

<script type="text/javascript">
    var slideShowInterval = 4000;
</script>



</fieldset>
</div>
		
		</td>
</tr>
</table>

<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Master', true), array('action' => 'edit', $master['Master']['id'])); ?> </li>
	</ul>
</div>
</dl>
</div>
